package com.wx_shop.api.security;

import java.util.Collection;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import com.wx_shop.api.vo.UserVo;

public class ApiAuthenticationToken extends UsernamePasswordAuthenticationToken {

	public static final String API_PRINCIPAL = "api-principal-000000"; 
	public static final String API_CREDENTIALS = "api-credentials-000000";
	
	public ApiAuthenticationToken(UserVo userVo, Collection<? extends GrantedAuthority> authorities) {
		super(API_PRINCIPAL, API_CREDENTIALS, authorities);
		this.setDetails(userVo);
	}

	private static final long serialVersionUID = 1L;
	
	
}
